/**
 * Map Info Directive
 */

// angular
//     .module('NxtMap')
//     .directive('mapInfo', mapInfo);

// function mapInfo() {
//     var directive = {
//         restrict: 'AE',
//         templateUrl: '../../templates/directive/map-info.html'
//     };
//     return directive;
// };

var nxtApp = angular.module('NxtMap'); 
nxtApp.directive("mapInfo", function () {  
  return {  
    restrict: 'AE',  
    transclude: true,  
    templateUrl: '../../templates/directive/map-info.html',
    link : function(scope, element, attrs) {
      scope.showInfo = false;
      scope.toggleInfo = function () {
        scope.showInfo = !scope.showInfo;
      }
    }
  };
});